import request from '@/utils/request'

// 查询订单货品详情列表
export function listOrderspc(query) {
  return request({
    url: '/pet/orderspc/list',
    method: 'get',
    params: query
  })
}

// 查询订单货品详情详细
export function getOrderspc(id) {
  return request({
    url: '/pet/orderspc/' + id,
    method: 'get'
  })
}

// 新增订单货品详情
export function addOrderspc(data) {
  return request({
    url: '/pet/orderspc',
    method: 'post',
    data: data
  })
}

// 修改订单货品详情
export function updateOrderspc(data) {
  return request({
    url: '/pet/orderspc',
    method: 'put',
    data: data
  })
}

// 删除订单货品详情
export function delOrderspc(id) {
  return request({
    url: '/pet/orderspc/' + id,
    method: 'delete'
  })
}
